package com.lph.niming.pojo;


import java.io.Serializable;

/**
 * @auther: Wyz
 * @date: 2021/10/29 19:53
 * @return
 */
public class Case implements Serializable {


    /**
     *  id
     */
    private Integer id;

    /**
     * 年龄
     */
    private String age;

    /**
     * 姓名
     */
    private String name;

    /**
     * 邮编
    */
    private String zipCode;

    private String year;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 性别
     */
    private String sex;

    /**
     * 身体状况
     */
    private String healthState;

    public Case() {
    }

    public Case(Integer id, String age, String name, String zipCode, String year, String phone, String sex, String healthState) {
        this.id = id;
        this.age = age;
        this.name = name;
        this.zipCode = zipCode;
        this.year = year;
        this.phone = phone;
        this.sex = sex;
        this.healthState = healthState;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHealthState() {
        return healthState;
    }

    public void setHealthState(String healthState) {
        this.healthState = healthState;
    }

    @Override
    public String toString() {
        return myToString();
    }

    private String myToString(){
        String s = "Case{";
        if (this.id!=null){
          s+= " id=" + this.id ;
        }
        if (this.age!=null){
            s+= " age=" + this.age ;
        }if (this.name!=null){
            s+= " name=" + this.name ;
        }if (this.zipCode!=null){
            s+= " zipCode=" + this.zipCode ;
        }if (this.zipCode!=null){
            s+= " year=" + this.year ;
        }if (this.phone!=null){
            s+= " phone=" + this.phone ;
        }if (this.sex!=null){
            s+= " sex=" + this.sex ;
        }if (this.healthState!=null){
            s+= " healthState=" + this.healthState ;
        }
        s+= " }";
        return s;
    }
}
